﻿using Sustainalytics.ClientDW.Entities;
using Sustainalytics.Entities;

namespace Sustainalytics.ScreeningTool.BL
{
    public class AnswerCategoryDto
    {
        public string Code { get; set; }
        public int Score { get; set; }
        public string Text { get; set; }

        public static AnswerCategoryDto ConvertAnswerCategoriesToDto(GovernanceAnswerCategory x)
        {
            return new AnswerCategoryDto()
            {
                Code = x.Code,
                Score = x.Score,
                Text = x.Score.ToString() //x.Text
            };
        }

        public static AnswerCategoryDto ConvertAnswerCategoriesToDto(AnswerCategory x)
        {
            return new AnswerCategoryDto()
            {
                Score = x.Score,
                Text = x.Text
            };
        }
    }
}
